<?php
#Template for Member Login
$page = (isset($page)) ? $page : 'fpassword';
include "inc/local_data.php";
$form = (isset($using_real_env) && $using_real_env) ? $form : ((isset($data[$page])) ? $data[$page] : array());
if (empty($form)) exit;

?>
<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.2//EN" "http://www.openmobilealliance.org/tech/DTD/xhtml-mobile12.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
    <head>
        <title><?php echo $form['title'];?></title>
		<?php include('inc/embed_top.php');?>
    </head>
    <body mlang="<?php echo $form['lang'];?>" class="body-gray">
        <div id="forget-password" class="<?php echo $form['lang'];?> login" data-role="page" data-theme="f" >
            <div class="ltit"><span class="logo">&nbsp;</span><span class="r">tvb.com</span></div>
            <form id="fPassForm" method="<?php echo $form['method'];?>" action="<?php echo $form['action'];?>" ajax="<?php echo $form['ajax_url'];?>" success_url="<?php echo $form['success_url'];?>" target="_top" autocomplete="off">
             	<h1><?php echo $form['forget_title'];?></h1>
             	<div id="err-msg"></div>
                <h2><?php echo $form['forget_note'];?></h2>
            	<div class="field">
                    <label for="s-email"><?php echo $form['email']['title'];?></label>
            		<input type="text" name="email" id="r-email" data-theme="f"  />
            	</div>
	            <div class="field ui-ubtn nobs">
                    <input type="submit" data-theme="f" value="<?php echo $form['button']['submit']['value'];?>" />
				</div>
				<?php
                if (isset($form['hidden']) && !empty($form['hidden'])) {
                    foreach((array)$form['hidden'] as $key=>$val) {
                        echo '<input type="hidden" name="'.$key.'" value="'.$val.'" />';
                    }
                }

                ?>
            </form>
    	</div>
		<?php include('inc/embed_bottom.php');?>
    </body>
</html>
